package com.d0324;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Random;

public class MathTest {
    public static void main(String[] args) {
        /*System.out.println(Math.ceil(13.33));
        System.out.println(Math.floor(13.33));
        System.out.println(Math.round(13.33));
        System.out.println(Math.round(0.33f));
        String s1="1231241425145134513453151345315314531513451345";
        String s2="42342342342342342342342343423423423";
        BigInteger b1=new BigInteger(s1);
        BigInteger b2=new BigInteger(s2);
        System.out.println(b1.add(b2));
        System.out.println(b1.divide(b2));
        double d1=4.2;
        double d2=5.8;
        BigDecimal b3=new BigDecimal(d1);
        BigDecimal b4=new BigDecimal(d2);
        System.out.println(b3.add(b4));*/
        Random rm= new Random();
        int a=rm.nextInt();

        System.out.println(a);
        int b=rm.nextInt(3);
        System.out.println(b);
    }
}
